package com.cloudfun.campusshare;

import com.cloudfun.campusshare.configuration.jpa.GaodaoRepositoryFactoryBean;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.cache.annotation.EnableCaching;

/**
 * @author linyangping
 */
@EnableAsync
@EnableScheduling
@EnableDubbo(scanBasePackages  = "com.cloudfun.campusshare.service.impl")
@EnableCaching
@ServletComponentScan
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
@EnableJpaRepositories(basePackages = "com.cloudfun.campusshare.repo",
		repositoryFactoryBeanClass = GaodaoRepositoryFactoryBean.class)
@EnableAspectJAutoProxy(exposeProxy=true)
public class CampusshareApplication {

	public static void main(String[] args) {
		SpringApplication.run(CampusshareApplication.class, args);
	}

}
